home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Floppyshop 2
/
Floppyshop - 2.zip
/
Floppyshop - 2.iso
/
diskmags
/
0022-3.564
/
dmg-3417
/
gfa_prog.s
/
gfamusic.lst
< prev
next >
Wrap
File List
|
1989-04-05
|
2KB
|
34 lines
INLINE music%,22000
' ! inline is for reserving some space to
' ! put the music in.
DIM reg%(16) ! dimension some space
'
DO ! oke lets start...
FILESELECT "a:\music\*.thk","",fnam$! fileselector to choose music.
IF fnam$<>"" ! if name isn't nothing then
BLOAD fnam$,music% ! load music into reserved space
musix_on ! gosub routine to start music
~INP(2) ! wait for key press
musix_off ! stop music
ELSE ! if name is nothing then
musix_off ! stop music
END ! back to basic or if compiled desktop
ENDIF ! end
LOOP ! goto start again to do it all over again
PROCEDURE musix_on
do%=GEMDOS(&H20,L:0) ! supervisor mode
reg%(0)=1 ! choose music
RCALL music%,reg%() ! music call
SLPOKE &H4D2,music%+8 ! begin address music diskmagazine 2
' SLPOKE &H4D2,music%+4 ! begin address music diskmagazine 1
~GEMDOS(&H20,L:do%) ! user mode
RETURN
'
PROCEDURE musix_off
do%=GEMDOS(&H20,L:0) ! supervisor mode
SLPOKE &H4D2,0 ! stop music
WAVE 0,0,0,0 ! all sound off
~GEMDOS(&H20,L:do%) ! user mode kiezen
RETURN
'